package cn.ljy.mes.web.controller.backstage.wms.warehouse;


import cn.ljy.authority.web.controller.backstage.BaseBackstageController;
import cn.ljy.mes.model.WmsWarehouse;
import cn.ljy.mes.model.query.WmsWarehouseQuery;
import cn.ljy.mes.service.MesMaterialService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "后台库区模块")
@RestController
@RequestMapping(value = "/backstage/wms/warehouse")
public class WmsWarehouseController extends BaseBackstageController<WmsWarehouse, WmsWarehouseQuery,String> {

    @Autowired
    private MesMaterialService baseService;

    @Override
    protected String getAuthorityPrefix() {
        return "wms:warehouse"; // 定义模块权限前缀
    }

//    @GetMapping("/all")
//    @PreAuthorize("hasAuthority('wms:warehouse:query')")
//    @Override
//    public ResponseData query(WmsWarehouseQuery wmsWarehouseQuery){
//        return super.query(wmsWarehouseQuery);
//    }

//    @PreAuthorize("hasAuthority('wms:warehouse:query')")
//    @Override
//    public ResponseData query(Integer page, Integer pageSize, WmsWarehouseQuery wmsWarehouseQuery){
//        return super.query(page,pageSize,wmsWarehouseQuery);
//    }
//
//    @PreAuthorize("hasAuthority('wms:warehouse:add')")
//    @Override
//    protected ResponseData add(@Validated({AddWorkValidation.class}) @RequestBody WmsWarehouse wmsWarehouse) {
//        return super.add(wmsWarehouse);
//    }
//
//    @PreAuthorize("hasAuthority('wms:warehouse:query')")
//    @Override
//    protected ResponseData get(@PathVariable String id) {
//        return super.get(id);
//    }
//
//
//    @PreAuthorize("hasAuthority('wms:warehouse:edit')")
//    @Override
//    public ResponseData edit(@Validated({UpdateWorkValidation.class}) @RequestBody WmsWarehouse wmsWarehouse){
//        return super.edit(wmsWarehouse);
//    }
//
//    @PreAuthorize("hasAuthority('wms:warehouse:del')")
//    @Override
//    public ResponseData deletes(String[] ids){
//        return super.deletes(ids);
//    }

}
